package com.swim.session;

import java.util.List;

import javax.ejb.Remote;
import com.swim.entity.FriendshipRequest;

@Remote
public interface FriendshipRemote {

	//testato
	public void newFriendshipRequest(String from, String to, boolean direct);

	//testato
	public List<FriendshipRequest> getReceivedFriendshipRequests(String emailTo);

	//testato
	public void acceptFriendshipRequest(int id, boolean accept);

	//testato
	public boolean canRequestFriendship(String email, String email1);

	public FriendshipRequest getFriendshipRequest(int id);
}
